<template>
  <div class="container" style="display: inline-block">
    <!-- 搜索框 -->
    <el-input
      ref="topInput"
      v-model="input"
      placeholder="请输入内容"
      style="width: 220px; margin: 0px 20px"
      @input="searchBtn"
      clearable
    >
    </el-input>
    <el-button
      type="primary"
      icon="el-icon-search"
      style="height: 40px; padding: 10px"
      @click="searchBtn"
      >搜索</el-button
    >
  </div>
</template>
<script>
export default {
  data() {
    return {
      input: "",
    };
  },
  methods: {
    searchBtn(value) {
      this.$emit("parent-searchBtn", value);
    },
  },
};
</script>